﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.UI;

namespace DiIoc.ScriptableObjectDemo
{
    public class SwordShop : MonoBehaviour
    {
        [SerializeField]
        private Text swordName;
        [SerializeField]
        private Text description;
        [SerializeField]
        private Text goldCost;
        [SerializeField]
        private Text attackDamage;


        public void UpdateDisplayUI(SwardData swordData)
        {
            swordName.text = swordData.SwordName;
            description.text = swordData.Description; 
            goldCost.text = swordData.GoldCost.ToString();
            attackDamage.text = swordData.AttackDamage.ToString();
        }
    }
}

